package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class GeneralSetFunction {

    private int beginIndex;
    private int endIndex;
    private ComputationalOperation setFunctionType;
    private SetQuantifier setQuantifier;
    private ValueExpression valueExpression;

    public GeneralSetFunction(int endIndex,
                              ComputationalOperation setFunctionType,
                              SetQuantifier setQuantifier,
                              ValueExpression valueExpression) {
        this.beginIndex = setFunctionType.getBeginIndex();
        this.endIndex = endIndex;
        this.setFunctionType = setFunctionType;
        this.setQuantifier = setQuantifier;
        this.valueExpression = valueExpression;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ComputationalOperation getSetFunctionType() {
        return setFunctionType;
    }

    public SetQuantifier getSetQuantifier() {
        return setQuantifier;
    }

    public ValueExpression getValueExpression() {
        return valueExpression;
    }

}
